<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core" %>	
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page import="mytask.domain.AuthManager" %>

<%@ include file="../components/screenHeader.jspf" %>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

<form:form method="post" action="login" modelAttribute="login">
<table class="align-center LoginForm" style="margin-top: 50px; width:80%">
	<tr>
		<td colspan="3" align="right"><nobr>Sisse logimiseks sisesta oma email ja parool.</nobr></td>
		<td rowspan="5" style="border-right: 4px solid #AABBCC">&nbsp;</td>
		<td rowspan="5" style="border-left: 4px solid #AABBCC">&nbsp;</td>
		<td rowspan="5" style="vertical-align: top">
			Pole veel kasutajat, aga sooviksid projekte hallata? 
			Registreeri ennast kasutajaks <a href="<spring:url value="register" />"><b>siin</b></a>.
		</td>
	</tr>
	<tr>
		<td align="right">Email:</td>
		<td><form:input size="20" path="email" cssStyle="width: 200px" /><br />
			<form:errors cssClass="formError" path="email" /></td>
	</tr>
	<tr>
		<td align="right">Parool:</td>
		<td><form:password size="20" path="password" cssStyle="width: 200px" /><br />
			<form:errors cssClass="formError" path="password" /></td>
	</tr>
	<tr>
		<td></td>
		<td><span class="formError">${errors}</span></td>
	</tr>
	<tr>
		<td colspan="2" align="right"><input class="SubmitButton" type="submit" value="Logi sisse!"></td>
	</tr>
</table>
</form:form>

<%@ include file="../components/screenFooter.jspf" %>